<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小菜单</title>
    <style>
        /* 按钮样式 */
        .custom-button {
            background-color: #007AFF;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .custom-button:hover {
            background-color: #0051b8;
        }

        /* 遮罩层 */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        /* Alert 弹窗容器 */
        .alert-container {
            background-color: white;
            border-radius: 12px;
            width: 300px;
            max-width: 90%;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            animation: fadeIn 0.3s ease-out;
            position: relative;
        }

        /* 弹窗头部 */
        .alert-header {
            padding: 20px 20px 10px 20px;
            border-bottom: 1px solid #e0e0e0;
        }

        .alert-header h2 {
            margin: 0;
            font-size: 18px;
            color: #333;
        }

        /* 弹窗内容 */
        .alert-content {
            padding: 10px 20px 20px 20px;
            font-size: 16px;
            color: #555;
        }

        /* 弹窗按钮 */
        .alert-buttons {
            display: flex;
            justify-content: flex-end;
            padding: 10px 20px;
            border-top: 1px solid #e0e0e0;
        }

        .alert-buttons button {
            background-color: #007AFF;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            margin-left: 10px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .alert-buttons button:hover {
            background-color: #0051b8;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }
        .click-effect {
            margin-top: -20px;
            margin-left: -20px;
            position: absolute;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(5, 195, 355, 8) 0%, rgba(5, 195, 255, 0) 100%);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s, transform 0.3s;
            transform: scale(0);
        }
em {
font-size: 20px;
        }
.LD{
border: 2px solid white;
width:300px;
height:300px;
border-radius:20px;
background-image:url('https://s2.loli.net/2024/12/17/1JmMzVWb2K4dcC3.gif');
background-size:130% 130%;
}
h5 {
color: black;
        }
    </style>
</head>
<body>
<!-- https://s2.loli.net/2024/07/08/6z1AGmMrsXBZVCJ.jpg -->
<div class="LD">
    <h1>Beta专用版<em>叉某制作</em></h1>
<h5>简易小菜单</h5>
     <button id="wdct" onclick="wdct()">无敌穿透</button>
     <button id="rwgk" onclick="rwgk()">人物隔空</button>
     <button onclick="sy()">瞬移</button>
     <button onclick="tg()">跳高</button>
     <button onclick="hljl()">横拉距离</button>
     <button onclick="xhwd()">下滑无敌</button>
     <button onclick="fxhl()">反向横拉</button>
     <button onclick="qxwdct()">取消无敌穿透</button>
   <h5>*修改横拉距离不能与反向横拉同时使用</h5>
 </div>
    <!-- 动态弹窗容器 -->
         <div class="overlay" id="alertOverlay">
             <div class="alert-container" id="alertContainer">
                 <div class="alert-header">
                     <h2 id="alertTitle">标题</h2>
                 </div>
                 <div class="alert-content" id="alertContent">
                     这是自定义的 iOS 风格 Alert 弹窗。
                 </div>
                 <div class="alert-buttons" id="alertButtons">
                     <button id="alertCancel">取消</button>
                     <button id="alertConfirm">确认</button>
                 </div>
             </div>
         </div>
    <script>
        // 创建 newAlert 函数
        function newAlert(content) {
            const alertOverlay = document.getElementById('alertOverlay');
            const alertTitle = document.getElementById('alertTitle');
            const alertContent = document.getElementById('alertContent');
            const alertCancel = document.getElementById('alertCancel');
            const alertConfirm = document.getElementById('alertConfirm');

            // 设置弹窗内容
            alertTitle.textContent = '提示';
            alertContent.textContent = content;
            alertCancel.textContent = '取消';
            alertConfirm.textContent = '确认';

            // 显示弹窗
            alertOverlay.style.display = 'flex';

            // 绑定事件
            alertCancel.addEventListener('click', () => {
                alertOverlay.style.display = 'none';
            });

            alertConfirm.addEventListener('click', () => {
                alertOverlay.style.display = 'none';
                alert('你点击了确认按钮');
            });

            // 点击遮罩层关闭弹窗
            alertOverlay.addEventListener('click', (event) => {
                if (event.target === alertOverlay) {
                    alertOverlay.style.display = 'none';
                }
            });
        }

        function wdct() {
            h5gg.clearResults();
            h5gg.searchNumber('0.02', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(20000.03, "F32");
            newAlert("无敌穿透");
        }

        function qxwdct() {
            h5gg.clearResults();
            h5gg.searchNumber('20000.03', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(0.02, "F32");
            newAlert("取消无敌穿透");
        }

        function rwgk() {
            h5gg.clearResults();
            h5gg.searchNumber('9', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(300, "F32");
            newAlert("人物隔空\n卡住就下滑");
        }

        function sy() {
            h5gg.clearResults();
            h5gg.searchNumber('60', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(0.1, "F32");
            newAlert("瞬移");
        }

        function hljl() {
            // 显示确认对话框
            let result = confirm("好是默认修改取消是自定义修改");

            // 根据用户的选择执行不同的操作
            if (result) {
                h5gg.clearResults();
                h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
                h5gg.searchNearby('2', 'F32', '0x100');
                h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
                h5gg.editAll(40, "F32");
                newAlert("长横拉距离\n可向右侧出图");
                // 在这里可以添加确认后的操作
            } else {
                var hljl = prompt("自定义横拉距离\n原距离20看着改");
                h5gg.clearResults();
                h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
                h5gg.searchNearby('2', 'F32', '0x100');
                h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
                h5gg.editAll(hljl, "F32");
                newAlert("自定义横拉距离");
                // 在这里可以添加取消后的操作
            }
        }

        function xhwd() {
            h5gg.clearResults();
            h5gg.searchNumber('4.5', 'F32', '0x00000000', '0x160000000');
            h5gg.searchNearby('5.5', 'F32', '0x100');
            h5gg.searchNumber('4.5', 'F32', '0x00000000', '0x160000000');
            var count = h5gg.getResultsCount();
            h5gg.editAll(9191, "F32");
            h5gg.searchNearby('5.5', 'F32', '0x100');
            h5gg.searchNumber('5.5', 'F32', '0x00000000', '0x160000000');
            var count = h5gg.getResultsCount();
            h5gg.editAll(9192, "F32");
            newAlert("下滑无敌️");
        }

        function fxhl() {
            h5gg.clearResults();
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.searchNearby('2', 'F32', '0x100');
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(-20, "F32");
            newAlert("反向横拉");
        }

        function tg() {
            h5gg.clearResults();
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.searchNearby('2', 'F32', '0x100');
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(0.073, "F32");
            h5gg.clearResults();
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.searchNearby('10', 'F32', '0x100');
            h5gg.searchNumber('20', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(50, "F32");
            h5gg.clearResults();
            h5gg.searchNumber('0.073', 'F32', '0x00000000', '0x200000000');
            h5gg.editAll(20, "F32");
            newAlert("跳高");
        }

        alert("叉某制作");
    </script>
    <script>     
        // 获取body元素
        var body = document.body;
        // 监听触摸事件
        body.addEventListener('touchstart', function(event) {
            // 创建点击特效元素
            var clickEffect = document.createElement('div');
            clickEffect.classList.add('click-effect');
            clickEffect.style.left = event.touches[0].clientX + 'px';
            clickEffect.style.top = event.touches[0].clientY + 'px';

            // 将特效元素添加到body中
            body.appendChild(clickEffect);

            // 动画特效
            clickEffect.style.opacity = 1;
            clickEffect.style.transform = 'scale(1)';

            setTimeout(function() {
                clickEffect.style.opacity = 0;
                clickEffect.style.transform = 'scale(0)';
                setTimeout(function() {
                    body.removeChild(clickEffect);
                }, 100);
            },200);
        });
    </script>
</body>
</html>